package com.bing.e721;

public class Run {

	public static void main(String[] args) {

		ThreadA a = new ThreadA();
		ThreadB b = new ThreadB();

		ThreadGroup group = new ThreadGroup("mygroup");
		Thread at = new Thread(group, a);
		Thread bt = new Thread(group, b);
		
		at.start();
		bt.start();
		System.out.println("活动的线程数为： " + group.activeCount());
		System.out.println("线程组的名称为： " + group.getName());

	}

}
